-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Inconsistent flags for format commands #10644
Copy link
Copy link
Closed
Labels
A:help-systemRelated to help commands and our documentation system (not docs itself)Related to help commands and our documentation system (not docs itself)category:documentationissues relating to documentationissues relating to documentationcategory:inconsistent-behaviorBehavior between different commands or types inconsistent/unexpectedBehavior between different commands or types inconsistent/unexpectedgood first issueGood for newcomersGood for newcomers
Milestone
Description
The format commands have inconsistent flags when it comes to indentation.
- to json has
--indenthttps://www.nushell.sh/commands/docs/to_json.html - to xml has
--prettyhttps://www.nushell.sh/commands/docs/to_xml.html
I assume we should have only one of those, since they seem to mean the same thing.
pretty makes the intention clear, on the other hand --pretty 2 is less obvious than --indent 2.
Which one do you prefer?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:help-systemRelated to help commands and our documentation system (not docs itself)Related to help commands and our documentation system (not docs itself)category:documentationissues relating to documentationissues relating to documentationcategory:inconsistent-behaviorBehavior between different commands or types inconsistent/unexpectedBehavior between different commands or types inconsistent/unexpectedgood first issueGood for newcomersGood for newcomers