Skip to content

bug: global flags are not parsed after cli arguments #15

Description

@TheRootDaemon

Global flags are not parsed when specified after the page argument

 ~/tlgc git:(cli ~ +1) : bin/tldr systemctl -c
ERROR: page not found, try running tldr --update

 ~/tlgc git:(cli ~ +1) : ✗ bin/tldr systemctl --compact
ERROR: page not found, try running tldr --update

 ~/tlgc git:(cli ~ +1) : ✗ bin/tldr --compact systemctl
  systemctl
  Control the systemd system and service manager.
  Some subcommands such as disable, status, reboot etc. have their own usage documentation.
  More information: https://www.freedesktop.org/software/systemd/man/latest/systemctl.html.
  Show all running services
    systemctl status
  List failed units
    systemctl --failed
  Start/Stop/Restart/Reload/Show the status of a service
    systemctl start|stop|restart|reload|status unit
  Enable/Disable a unit to be started on bootup
    systemctl enable|disable unit
  Reload systemd, scan for new or changed units
    systemctl daemon-reload
  Check if a unit is active/enabled/failed
    systemctl is-active|is-enabled|is-failed unit
  List all service/socket/automount units filtering by running/failed state
    systemctl list-units --type service|socket|automount|... --state failed|running
  Show the contents & absolute path of a unit file or edit it
    systemctl cat|edit unit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions