Command history missing for default commands #1387
              
                
                  
                  
                    Answered
                  
                  by
                    kmvanbrunt
                  
              
          
                  
                    
                      Sripadvallabh
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         Due to some requirement, i have made a default command by overriding the default() function as shown below: Because of this, most of the time users would be invoking 'run' command directly with arguments instead of calling 'run ': The run command doesn't have argparse options so it works seamlessly. But unfortunately, these commands don't show up in the history when i restart my application & check using 'history' command or by Up & down arrows. May i know if this is supported?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            kmvanbrunt
          
      
      
        Nov 30, 2024 
      
    
    Replies: 1 comment 2 replies
-
| 
         Call one of the following: 
  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
      Answer selected by
        Sripadvallabh
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Call one of the following:
self.onecmd_plus_hooks(f"run {stmt.raw}")self.onecmd(f"run {stmt.raw}")