Skip to content

Terminal command conventions #3110

Description

@branchtheory

Preflight Checklist

  • I have read the Contributing Guidelines.
  • I have searched the issue tracker for an existing report of this issue and found none.
  • I understand that the issue tracker is for bugs in the game itself and feature requests, not for issues with my own scripts.

Description

(1) Currently we always use square brackets, whether or not things are mandatory.

For example:

Incorrect usage of nano command. Usage: nano [scriptname], instead of, say, nano <scriptname> or just nano scriptname

Or:

mem [script] [-t n]              Displays the amount of RAM required to run the script
run [script] [-t n] [--tail]     Run a program, a script, or a coding contract
        [--ram-override n]
        [--temporary] [args...]

Instead of, say:

mem script [-t n]              Displays the amount of RAM required to run the script
run script [-t n] [--tail]     Run a program, a script, or a coding contract
        [--ram-override n]
        [--temporary] [args...]

or run <script> etc. / men <script> etc.

(2) We also use upper case and lower case inconsistently (rm [OPTIONS]... [FILE]... vs mv [src] [dest]).

(3) We're inconsistent about small things like file vs file name vs filename.

(4) ps is missing args in the help read-out -- it's ps [-g, --grep pattern]. Others may be too. Also ls has [-g] in the help read-out, but also supports --grep.

Finally, lots of players won't understand what these conventions even denote. I don't think they have an easy way to find out either. When I first played the game I'd hardly used a terminal before, and assumed that the commands and syntax were Bitburner's own invention. I wouldn't have thought to Google "Linux CLI command conventions".

So it would be helpful to add a couple of lines to the help command read-out to explain things. E.g.

  • square brackets mean optional, and no brackets / angle brackets mean mandatory
  • lower case means literal, upper means placeholder
  • [-g, --grep] means you can use either flag, and they do the same thing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions